#本例演示如何向工程中添加文件
cmake_minimum_required(VERSION 2.8)
project(use-lib-cpp)

#set(CMAKE_CXX_COMPILER g++)
#向文件列表中添加文件目录，添加目录中的文件到目录列表中
#AUX_SOURCE_DIRECTORY(. src_list)

set(lib_path ${CMAKE_SOURCE_DIR}/../lib-cpp)

#添加头文件搜索路径
include_directories(${lib_path})

add_executable(${PROJECT_NAME} main.cpp)

target_link_libraries(${PROJECT_NAME}
    ${lib_path}/libjuly_cpp.dll)

configure_file("${lib_path}/libjuly_cpp.dll"
    ${EXECUTABLE_OUTPUT_PATH} COPYONLY )
